3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
Uns32 vertexIndex1
Uns32 vertexIndex2
The edge defined by a mesh edge data type must be an edge of a face (not merely a contour) of the parent mesh.
Uns32 nEdges
MeshEdge edges[nEdges]
The mesh edges object is used to attach attribute sets separately and selectively to one or more edges of faces of a mesh.
Attribute sets (always). The number of child objects is equal to the value of the nEdges field. Child objects are correlated with elements of the array edges[] in the order of their occurrence in the specification of the mesh edges object and its child objects; that is, the i th child object is correlated with the i th element of the array edges[] .
Container (
Mesh ( ... )
Container (
MeshEdges (
2 # numEdges
0 1 # first edge
1 3 # second edge
)
Container ( # first edge attribute set
AttributeSet ( )
DiffuseColor ( 0.2 0.8 0.3 )
)
Container ( # second edge attribute set
AttributeSet ( )
DiffuseColor ( 0.8 0.2 0.3 )
)
)
)
Previous | QD3D Book | Overview | Chapter Contents | Next |